import React from 'react';
import { Link, Route } from 'react-router-dom';
import Test1 from './test2-1';
import Test2 from './test2-2';
console.log('加载Home');
export default function Home() {
  return (
    <div>
      {/* 一级路由的视图如下: */}
      <hr />
      <hr />
      <hr />
      一级路由Home页面
      <br />
      <>&nbsp;</>
      <>&nbsp;</>
      <>&nbsp;</>
      <Link to="/Home/test1">test1</Link>
      <Link to="/Home/test2">test2</Link>
      {/* 在这渲染二级路由的视图,所以就在这配置二级路由 */}
      <Route path="/Home/test1" component={Test1}></Route>
      <Route path="/Home/test2" component={Test2}></Route>
      <hr />
      <hr />
      <hr />
    </div>
  );
}
